<template>
  <div>
    <div>
      <h4>认知心理</h4>
      <el-row type="flex" justify="space-around">
        <el-col :span="6">
          <div>
            <span>意识状态 </span>
            <el-select v-model="pgForm.cognitive_psychology_value1" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>配合程度 </span>
            <el-select v-model="pgForm.cognitive_psychology_value2" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options2"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>心理状态 </span>
            <el-select v-model="pgForm.cognitive_psychology_value3" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options3"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6"></el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "cognitive_psychology",
  title: "认知心理",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      options1: [{
        value: '昏迷',
        label: '昏迷'
      }, {
        value: '嗜睡',
        label: '嗜睡'
      }, {
        value: '正常',
        label: '正常'
      }],
      options2: [{
        value: '消极',
        label: '消极'
      }, {
        value: '一般',
        label: '一般'
      }, {
        value: '积极',
        label: '积极'
      }],
      options3: [{
        value: '焦虑',
        label: '焦虑'
      }, {
        value: '抑郁',
        label: '抑郁'
      }, {
        value: '正常',
        label: '正常'
      }],
      pgForm: {
        cognitive_psychology_value1: '',
        cognitive_psychology_value2: '',
        cognitive_psychology_value3: ''
      }
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
</style>
